---
title: "Read Me for Shadowing as a Tool for Studying Political Elites replication materials"
author: "Jennifer Bussell"
date: "3/10/2020"
output: 
  pdf_document: 
    keep_tex: yes
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

This Read Me file contains an overview of the replication materials for "Shadowing as a Tool for Studying Political Elites."

This code was written in R 3.5.2 on MacOS Catalina 10.15.4
Please note that differing random number generators (RNGs) in different versions of R can lead to slightly different results, but the substantive conclusions of the manuscript are not affected.

The R packages used are:
tidyverse_1.3.0
stm_1.3.4
wordcloud_2.6
igraph_1.2.4.1
ggplot2_3.2.1


Scripts were run on a laptop with a 2.2 GHz dual-core processor with 8 GB RAM active memory. Run time on a standard laptop for all scripts is approximately three (3) to five (5) minutes.

For the main article:

- There is one data file: "pradhantextall2.csv"
- There is one R script: "Shadowing_Elites_Replication"
- These materials can be used to reproduce Figure 5 in the article. The remaining tables and figures are extracted from the Supplementary Materials, for which I provide replication materials below.


For the Supplementary Materials:

- All of the analyses requiring replication are a part of the VCP Study, which is a working paper that serves as an example for the main article.
- The same data file - "pradhantextall2.csv" - should be used. 
- The R script "Bussell_VCP_Study_Replication_Script.R" can be used to replicate the material for Table 1 in the VCP study, Figures 1-4, and the models reported in text and related tables in the Appendix. 
- An additional data file "Bussell_VCP_Study_Anonymized_Field_Notes.xls" is included for reference and transparency, but is not needed for replication.


